/*           Copyright(c) 2007-2008 Dave Sexton            *
 *                   XmlTreeView Control                   *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;

namespace DaveSexton.Controls
{
	/// <summary>
	/// Provides event arguments for the <see cref="XmlTreeView"/> control.
	/// </summary>
	[Serializable]
	public class XmlTreeNodeEventArgs : EventArgs
	{
		#region Public Properties
		public XmlTreeNode Node
		{
			get
			{
				return node;
			}
		}
		#endregion

		#region Private / Protected
		private readonly XmlTreeNode node;
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="XmlTreeNodeEventArgs" /> class.
		/// </summary>
		public XmlTreeNodeEventArgs(XmlTreeNode node)
		{
			if (node == null)
				throw new ArgumentNullException("node");

			this.node = node;
		}
		#endregion
	}
}
